package org.redhat.auth.security.taglibs;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.opensymphony.xwork2.util.ValueStack;

public class AuthSpringSecurityModel {

	private ValueStack stack;
	private HttpServletRequest req;
	private HttpServletResponse res;

	private UserModel user;

	private AuthorizeModel authorize;

	public AuthSpringSecurityModel(ValueStack stack, HttpServletRequest req,
			HttpServletResponse res) {
		super();
		this.stack = stack;
		this.req = req;
		this.res = res;
	}

	public UserModel getUser() {
		return new UserModel(stack, req, res);
	}

	public AuthorizeModel getAuthorize() {
		return new AuthorizeModel(stack, req, res);
	}

}
